package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

// 电话邮箱验证
@Data
// @EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_verify")
public class Verify implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 账号：电话区号
    private String accountExtend;

    // 账号
    private String account;

    // 账号类型：1电话
    private Integer type;

    // 验证码
    private String code;

    // ip地址
    private Long ipAddr;

    // 创建时间
    private Integer createTime;

    // 状态：0待验证，1已验证
    private Integer status;

}
